package com.springboot.chatroom.service;


import com.springboot.chatroom.mapper.UserMapper;
import com.springboot.chatroom.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * Description :
 * User: jiume
 * Date: 2025-03-21
 * Time: 13:38
 */
@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User selectByUsername(String username) {
        return userMapper.selectByUsername(username);
    }

    public Integer insertUser(String username, String password) {
        return userMapper.insertUser(username, password);
    }
}
